home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / LinkB.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.0 KB  |  98 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _LINKB_
  4. #define _LINKB_
  5.  
  6. #ifndef _PSTOBJ_
  7. #include "PstObj.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface  ODBaseLink;
  15.  
  16. //==============================================================================
  17. // Classes used by this interface
  18. //==============================================================================
  19.  
  20. interface    ODLinkSource;
  21. interface    ODStorageUnit;
  22. interface    ODPart;
  23. interface    ODDraft;
  24. interface    ODFacet;
  25.  
  26.  
  27. //==============================================================================
  28. // ODLink
  29. //==============================================================================
  30.  
  31. interface ODBaseLink :  ODPersistentObject
  32. {
  33.     ODBoolean Lock(in ODULong wait, out ODLinkKey key);
  34.                     
  35.     void Unlock(in ODLinkKey key);
  36.     
  37.     ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
  38.     
  39.     void RegisterDependent(in ODPart clientPart, in ODUpdateID id);
  40.                             
  41.     void UnregisterDependent(in ODPart clientPart);
  42.     
  43.     ODUpdateID GetUpdateID();    
  44.     
  45.     ODTime GetChangeTime();
  46.     
  47.     void ShowSourceContent();
  48.     
  49. #ifdef _PLATFORM_MACINTOSH_
  50.  
  51.     ODBoolean ShowLinkDestinationInfo(
  52.                     in ODFacet facet,
  53.                     in ODLinkInfo info,
  54.                     in ODBoolean changesAllowed,
  55.                     out ODLinkInfoResult infoResult);
  56.  
  57. #endif //# _PLATFORM_MACINTOSH_
  58.  
  59.  
  60. #ifdef __SOMIDL__
  61. #ifdef _PLATFORM_MACINTOSH_
  62.     implementation
  63.     {
  64.         majorversion = 1; minorversion = 0;
  65.  
  66.         functionprefix = ODBaseLink;
  67.  
  68.         override:
  69.             somUninit,
  70.             Externalize,
  71.             ReleaseAll,
  72.             CloneInto;
  73.  
  74.         releaseorder:
  75.             Lock,
  76.             Unlock,
  77.             GetContentStorageUnit,
  78.             RegisterDependent,
  79.             UnregisterDependent,
  80.             GetUpdateID,
  81.             GetChangeTime,
  82.             ShowSourceContent,
  83.             ShowLinkDestinationInfo,
  84.             reserved1,
  85.             reserved2,
  86.             reserved3,
  87.             reserved4,
  88.             reserved5,
  89.             reserved6,
  90.             reserved7;
  91.  
  92.     };
  93. #endif //# _PLATFORM_MACINTOSH_
  94. #endif //# __SOMIDL__
  95. };
  96.  
  97. #endif //# _LINKB_
  98.